/**
 * @(#)com.framework.web.bus.domain.Ingredients
 *
 * Copyright (c) 2014-2018 ﻿上海XX科技有限公司
 *
 * DESC:
 *
 */
package com.framework.web.bus.domain;

import com.framework.core.domain.IdEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @author zqtao
 * @version 1.0  2016-9-8
 */
@Entity
@Table(name = "t_bus_ingredients")
public class Ingredients extends IdEntity implements java.io.Serializable {
    private String ingredientName;
    private Integer ingredientCount;
    private Integer sortIndex;
    private String createBy;
    private String createName;
    private Date createTime;
    private String updateBy;
    private String updateName;
    private Date updateTime;
    private String cookbookId;
    private Integer status;

    private Cookbook cookbook;


    @Basic
    @Column(name = "INGREDIENT_NAME")
    public String getIngredientName() {
        return ingredientName;
    }

    public void setIngredientName(String ingredientName) {
        this.ingredientName = ingredientName;
    }

    @Basic
    @Column(name = "INGREDIENT_COUNT")
    public Integer getIngredientCount() {
        return ingredientCount;
    }

    public void setIngredientCount(Integer ingredientCount) {
        this.ingredientCount = ingredientCount;
    }

    @Basic
    @Column(name = "SORT_INDEX")
    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    @Basic
    @Column(name = "CREATE_BY")
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Basic
    @Column(name = "CREATE_NAME")
    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "UPDATE_BY")
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Basic
    @Column(name = "UPDATE_NAME")
    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "COOKBOOK_ID")
    public String getCookbookId() {
        return cookbookId;
    }

    public void setCookbookId(String cookbookId) {
        this.cookbookId = cookbookId;
    }

    @ManyToOne(targetEntity = com.framework.web.bus.domain.Cookbook.class)
    @JoinColumn(name = "COOKBOOK_ID", insertable = false, updatable = false)
    public Cookbook getCookbook() {
        return cookbook;
    }

    public void setCookbook(Cookbook cookbook) {
        this.cookbook = cookbook;
    }

    public Integer getStatus() {
        return status;
    }

    @Basic
    @Column(name = "STATUS")
    public void setStatus(Integer status) {
        this.status = status;
    }
}
